![]() |
WOLF core
WOLF: A Modular Estimation Framework for Robotics
|
Base class of local parametrizations: plus and minus operations of a state with increments in its tangent space. More...
#include <core/state_block/local_parametrization_base.h>
Public Member Functions | |
| LocalParametrizationBase (unsigned int _global_size, unsigned int _local_size) | |
| Constructor from the sizes of the state and its tangent space. More... | |
| virtual | ~LocalParametrizationBase () |
| Destructor. More... | |
| bool | plus (const Eigen::VectorXd &_x, const Eigen::VectorXd &_delta, Eigen::VectorXd &_x_plus_delta) const |
| Plus operation: applies a local increment to a state. More... | |
| virtual bool | plus (Eigen::Map< const Eigen::VectorXd > &_x, Eigen::Map< const Eigen::VectorXd > &_delta, Eigen::Map< Eigen::VectorXd > &_x_plus_delta) const =0 |
| Plus operation on Eigen maps (see the overload above) More... | |
| virtual bool | computePlusJacobian (Eigen::Map< const Eigen::VectorXd > &_x, Eigen::Map< Eigen::MatrixRowXd > &_jacobian) const =0 |
| Computes the Jacobian of the plus operation wrt the local increment, at zero increment. More... | |
| virtual bool | minus (Eigen::Map< const Eigen::VectorXd > &_x1, Eigen::Map< const Eigen::VectorXd > &_x2, Eigen::Map< Eigen::VectorXd > &_x2_minus_x1) const =0 |
| Minus operation: computes the local increment between two states NOTE: This function computes x2 (minus) x1 ! More... | |
| virtual bool | computeMinusJacobian (Eigen::Map< const Eigen::VectorXd > &_x, Eigen::Map< Eigen::MatrixRowXd > &_jacobian) const =0 |
| Computes the Jacobian of the minus operation (x2 minus x) wrt x2, at x2 = x. More... | |
| virtual bool | isValid (const Eigen::VectorXd &state, double tolerance) const =0 |
| Returns whether a state is valid (e.g. a unit quaternion), up to a tolerance. More... | |
| unsigned int | getLocalSize () const |
| Returns the size of the tangent space. More... | |
| unsigned int | getGlobalSize () const |
| Returns the size of the state. More... | |
Protected Attributes | |
| unsigned int | global_size_ |
| Size of the state. More... | |
| unsigned int | local_size_ |
| Size of the tangent space. More... | |
Base class of local parametrizations: plus and minus operations of a state with increments in its tangent space.
| wolf::LocalParametrizationBase::LocalParametrizationBase | ( | unsigned int | _global_size, |
| unsigned int | _local_size | ||
| ) |
Constructor from the sizes of the state and its tangent space.
|
virtual |
Destructor.
|
pure virtual |
Computes the Jacobian of the minus operation (x2 minus x) wrt x2, at x2 = x.
Implemented in wolf::LocalParametrizationAngle, wolf::LocalParametrizationQuaternion< DeltaReference >, wolf::LocalParametrizationQuaternion< DeltaReference >, and wolf::LocalParametrizationQuaternion< DeltaReference >.
|
pure virtual |
Computes the Jacobian of the plus operation wrt the local increment, at zero increment.
| _x | the state |
| _jacobian | the Jacobian matrix |
Implemented in wolf::LocalParametrizationAngle, wolf::LocalParametrizationQuaternion< DeltaReference >, wolf::LocalParametrizationQuaternion< DeltaReference >, and wolf::LocalParametrizationQuaternion< DeltaReference >.
| unsigned int wolf::LocalParametrizationBase::getGlobalSize | ( | ) | const |
Returns the size of the state.
| unsigned int wolf::LocalParametrizationBase::getLocalSize | ( | ) | const |
Returns the size of the tangent space.
|
pure virtual |
Returns whether a state is valid (e.g. a unit quaternion), up to a tolerance.
Implemented in wolf::LocalParametrizationQuaternion< DeltaReference >, and wolf::LocalParametrizationAngle.
|
pure virtual |
Minus operation: computes the local increment between two states NOTE: This function computes x2 (minus) x1 !
| _x1 | the first state |
| _x2 | the second state |
| _x2_minus_x1 | the resulting local increment |
Implemented in wolf::LocalParametrizationQuaternion< DeltaReference >, wolf::LocalParametrizationQuaternion< DeltaReference >, wolf::LocalParametrizationQuaternion< DeltaReference >, and wolf::LocalParametrizationAngle.
| bool wolf::LocalParametrizationBase::plus | ( | const Eigen::VectorXd & | _x, |
| const Eigen::VectorXd & | _delta, | ||
| Eigen::VectorXd & | _x_plus_delta | ||
| ) | const |
Plus operation: applies a local increment to a state.
| _x | the state |
| _delta | the local increment |
| _x_plus_delta | the resulting state after applying the increment |
|
pure virtual |
Plus operation on Eigen maps (see the overload above)
Implemented in wolf::LocalParametrizationAngle, wolf::LocalParametrizationQuaternion< DeltaReference >, wolf::LocalParametrizationQuaternion< DeltaReference >, and wolf::LocalParametrizationQuaternion< DeltaReference >.
|
protected |
Size of the state.
|
protected |
Size of the tangent space.